using System.IO.Compression;

namespace CSharpPro._1027;

public class Demo
{
    private int id;
    private string name;
    private int age;

    public int Id
    {
        get => id;
        set => id = value;
    }

    public string Name
    {
        get => name;
        set => name = value ?? throw new ArgumentNullException(nameof (value));
    }
    
    public void Testprint()
    {
        int result = Add(10, 20);
        Console.WriteLine(result);
    }

    public int Add(int a, int b)
    {
        return a + b;
    }

    public String Add(String a, String b)
    {
        return a + b;
    }

    public class Child 
    {
        public virtual void Print()
        {
        }
    }
    public List<Child> Childs = new List<Child>();
    
}